//
//  LoadMapViewController.m
//  Runone
//
//  Created by runone01 on 16/9/6.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "LoadMapViewController.h"
#import "OfflineDetailViewController.h"
#import <MAMapKit/MAMapKit.h>
@interface LoadMapViewController ()
@property(nonatomic,strong)MAMapView *mapView;
@end

@implementation LoadMapViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    [self initNavigationBar];
    // Do any additional setup after loading the view from its nib.
   
}
- (void)detailAction
{
    OfflineDetailViewController *detailViewController = [[OfflineDetailViewController alloc] init];
    detailViewController.mapView = self.mapView;
    detailViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    
    UINavigationController *navi = [[UINavigationController alloc] initWithRootViewController:detailViewController];
    
    [self presentViewController:navi animated:YES completion:nil];
}

#pragma mark - Initialization

- (void)initNavigationBar
{
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"城市列表"
                                                                              style:UIBarButtonItemStyleBordered
                                                                             target:self
                                                                             action:@selector(detailAction)];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
